package com.freedom.admin.infrastructure.persistence.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.freedom.admin.infrastructure.persistence.pojo.po.SysUserRolePO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 用户角色持久层
 *
 */
@Mapper
public interface SysUserRoleMapper extends BaseMapper<SysUserRolePO> {

    int saveBatch(List<SysUserRolePO> list);

    List<SysUserRolePO> selectByUserId(Integer userId);

    void deleteByUserId(Integer userId);

    void deleteByUserIds(List<Integer> userIds);

    void deleteByRoleIds(List<Integer> roleIds);
}
